package com.zjpg.forum.util;

import java.util.UUID;

/**
 * @ClassName UUIDUtil
 * @Description: TODO
 * @Author: JCC
 * @CreateTime: 2023/8/10 15:48
 */
public class UUIDUtil {

    /**
     * 生成一个标准的UUID
     * @return
     */
    public static String UUID_36() {
        return UUID.randomUUID().toString();
    }

    /**
     * 生成一个32为的UUID
     * @return
     */
    public static String UUID_32() {
        return UUID.randomUUID().toString().replace("-","");
    }
}
